package com.hsnn.medstgmini.base.dict.model;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * 包装单位实体类
 * @author wangbing@njhsnn
 * 2015年6月9日
 */
@Entity
@Table(name="dic_packunit")

public class DicPackunit  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = -8292120610536826623L;
	private String packunitId; //包装单位ID
     private String packunitCode;//包装单位编码
     private String packunitName;//包装单位
     private String status;//状态 1启用0停用
     private String updDatetime;//更新时间
     private String updUser;//更新人
     private String sortId;//排序id


    // Constructors

    /** default constructor */
    public DicPackunit() {
    }

	/** minimal constructor */
    public DicPackunit(String packunitCode, String packunitName) {
        this.packunitCode = packunitCode;
        this.packunitName = packunitName;
    }
    
    /** full constructor */
    public DicPackunit(String packunitCode, String packunitName, String status, String updDatetime, String updUser, String sortId) {
        this.packunitCode = packunitCode;
        this.packunitName = packunitName;
        this.status = status;
        this.updDatetime = updDatetime;
        this.updUser = updUser;
        this.sortId = sortId;
    }

   
    // Property accessors
    @Id
    @GenericGenerator(name="generator", strategy="uuid")
    @GeneratedValue(generator="generator")
    @Column(name="packunit_id", unique=true, nullable=false, length=36)

    public String getPackunitId() {
        return this.packunitId;
    }
    
    public void setPackunitId(String packunitId) {
        this.packunitId = packunitId;
    }
    
    @Column(name="packunit_code", nullable=false, length=10)

    public String getPackunitCode() {
        return this.packunitCode;
    }
    
    public void setPackunitCode(String packunitCode) {
        this.packunitCode = packunitCode;
    }
    
    @Column(name="packunit_name", nullable=false, length=100)

    public String getPackunitName() {
        return this.packunitName;
    }
    
    public void setPackunitName(String packunitName) {
        this.packunitName = packunitName;
    }
    
    @Column(name="status")

    public String getStatus() {
        return this.status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    @Column(name="upd_datetime", length=19)

    public String getUpdDatetime() {
        return this.updDatetime;
    }
    
    public void setUpdDatetime(String updDatetime) {
        this.updDatetime = updDatetime;
    }
    
    @Column(name="upd_user", length=36)

    public String getUpdUser() {
        return this.updUser;
    }
    
    public void setUpdUser(String updUser) {
        this.updUser = updUser;
    }
    
    @Column(name="sort_id")

    public String getSortId() {
        return this.sortId;
    }
    
    public void setSortId(String sortId) {
        this.sortId = sortId;
    }
   








}